import req from '@/utils/req'

// const MODULE_URL = process.env.BASE_API_process +'/factory/processPath/';

export function getList(obj) {
  return req.post('/factory/processPath/list',obj);
}

//新建
export function createRow(obj) {
  return req.post('/factory/processPath/create',obj);
}

//获得工序信息
export function gongXuList(pathId) {
  return req.post('/factory/processPath/pathProcessTree?pathId='+pathId);
}


//修改
export function editRow(obj) {
  return req.post('/factory/processPath/update',obj);
}

//删除
export function deleteRow(id) {
  return req.post('/factory/processPath/delete?id='+id)
}

// export function getList(obj) {
//   return req.post(MODULE_URL +'list',obj);
// }

// //新建
// export function createRow(obj) {
//   return req.post(MODULE_URL +'create',obj);
// }

// //获得工序信息
// export function gongXuList(pathId) {
//   return req.post(MODULE_URL +'pathProcessTree?pathId='+pathId);
// }


// //修改
// export function editRow(obj) {
//   return req.post(MODULE_URL +'update',obj);
// }

// //删除
// export function deleteRow(id) {
//   return req.post(MODULE_URL+ 'delete?id='+id)
// }

